def METHOD_NAME():
    mock_ec2 = moto.mock_ec2()
    mock_ecs = moto.mock_ecs()
    mock_ec2.start()
    mock_ecs.start()
    ecs = client('ecs', region_name="us-east-1")
    ecs.create_cluster(
        clusterName='UploadEventCluster',
        tags=[
            {
                'key': 'Cost',
                'value': 'AI'
            },
        ],
        capacityProviders=[
            'FARGATE',
        ]
    )
    ec2_resource = resource("ec2", "us-east-1")
    response = ec2_resource.create_instances(
        ImageId='ami_id',
        MinCount=1,
        MaxCount=1,
        BlockDeviceMappings=[
            {
                "DeviceName": "/dev/sda1",
                "Ebs": {"VolumeSize": 50, "DeleteOnTermination": False},
            }
        ],
    )
    instance_id_document = json.dumps(
        ec2_utils.generate_instance_identity_document(response[0])
    )
    ecs.register_container_instance(
        cluster='UploadEventCluster',
        instanceIdentityDocument=instance_id_document
    )
    ecs.register_task_definition(
        family='kairon-task',
        taskRoleArn='arn:aws:iam::014936247795:role/ecsTaskExecutionRole',
        networkMode='awsvpc',
        containerDefinitions=[
            {
                'name': 'kairon-task',
                'image': 'digite/kairon-data-importer:latest',
                'cpu': 4096,
                'memory': 8192,
                'essential': True,
                'environment': [
                    {
                        'name': 'BOT',
                        'value': 'demo'
                    },
                    {
                        'name': 'USER',
                        'value': 'demo'
                    },
                    {
                        'name': 'IMPORT_DATA',
                        'value': 'demo'
                    },
                    {
                        'name': 'OVERWRITE',
                        'value': 'demo'
                    }
                ]
            },
        ],
        requiresCompatibilities=[
            'FARGATE',
        ],
        tags=[
            {
                'key': 'Cost',
                'value': 'AI'
            },
        ]
    )