def name_from_object(obj):
    """
  This function returns the name of the object
  from its initialized instance.

  Arguments
  ---------
  obj : any
        The object whose name needs to be returned.

  Returns
  -------
  name : str
         The name of the object
  """
    cls_str = str(obj.__class__) if str(obj.__class__) != str(type) else str(
        obj)
    return cls_str[1:-2].split('.')[-1].lower()
