def METHOD_NAME(ec2_client, ami_id):
    response = ec2_client.describe_images(ImageIds=[ami_id])
    if 'ResponseMetadata' in response and response['ResponseMetadata']['HTTPStatusCode'] == 200:
        if response.get('Images'):
            return response['Images'][0].get('State')
    return None