# Path: applitools/core/errors.py
# class EyesIllegalArgument(EyesError):
#     """
#     Raise when parameter with wrong type passed to function
#     """
# 
# Path: applitools/utils/compat.py
# def iteritems(dct):
#     return (getattr(dct, 'iteritems', None) or dct.items)()


import typing as tp
from applitools.core.errors import EyesIllegalArgument
from .compat import iteritems



def get_name_from_param(param):
    for var_name, var in iteritems(locals()):
        if var is param:

# Path: applitools/core/errors.py
# class EyesIllegalArgument(EyesError):
#     """
#     Raise when parameter with wrong type passed to function
#     """
# 
# Path: applitools/utils/compat.py
# def iteritems(dct):
#     return (getattr(dct, 'iteritems', None) or dct.items)()


# Path: applitools/utils/argument_guard.py
import typing as tp
from applitools.core.errors import EyesIllegalArgument
from .compat import iteritems




def get_name_from_param(param):
    for var_name, var in iteritems(locals()):
        if var is param:

            return var_name