def METHOD_NAME(path, field_name, content_type):
    """Returns an InMemoryUploadedFile object of a given file at the ``path``."""
    # adapted from here:
    # http://groups.google.com/group/django-users/browse_thread/thread/
    # 834f988876ff3c45/
    # pylint: disable=consider-using-with
    f = open(path, "rb")
    return InMemoryUploadedFile(
        file=f,
        field_name=field_name,
        name=f.name,
        content_type=content_type,
        size=os.path.getsize(path),
        charset=None,
    )