{"task": {"agent_timeout": 3000, "task": "getmoto__moto-7336", "verifier_timeout": 6000, "instruction": "Default IAM user is not support in AWS China. user/moto\nI have a code like that, \n```\ndef assume_cross_account_role_via_arn(role_arn, role_session_name=None, region_name=None) -> boto3.Session:\n    _session = boto3.Session(region_name=region_name)\n    session = assume_role(_session, role_arn, RoleSessionName=role_session_name, region_name=region_name)\n    logger.info(\"Role: %s has been successfully assumed.\", role_arn)\n    return session\n```\nWhen I use assume_role() in AWS China , the moto default user is `arn:aws:sts::123456789012:user/moto`. So it can not be assumed because of the different partition(aws-cn).\n\nAnd I have seen the code in https://github.com/getmoto/moto/blob/d98972ffc8c0cf67f7572478b722b0b59a446479/moto/sts/models.py#L189 \n\n```\n    def get_caller_identity(self, access_key_id: str) -> Tuple[str, str, str]:\n        assumed_role = self.get_assumed_role_from_access_key(access_key_id)\n        if assumed_role:\n            return assumed_role.user_id, assumed_role.arn, assumed_role.account_id\n\n        iam_backend = iam_backends[self.account_id][\"global\"]\n        user = iam_backend.get_user_from_access_key_id(access_key_id)\n        if user:\n            return user.id, user.arn, user.account_id\n\n        # Default values in case the request does not use valid credentials generated by moto\n        user_id = \"AKIAIOSFODNN7EXAMPLE\"\n        arn = f\"arn:aws:sts::{self.account_id}:user/moto\"\n        return user_id, arn, self.account_id\n```\nIt's hard code. Maybe it's better to use the var in partition.\n```\n    partition = boto3.Session().get_partition_for_region(region_name=region)\n    arn = f\"arn:{partition}:sts::{self.account_id}:user/moto\"\n```\n\nBy the way, how can I generate a new user to replace the default moto user ?\n\nThank you ~\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": 1, "instruction_truncated": false, "category": "debugging", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "swegym", "tags": ["debugging", "swe-bench"]}, "runs": []}