code: def _is_leonardo_module(whatever):
      '''check if is leonardo module'''
  
      # check if is python module
      if hasattr(whatever, 'default') \
              or hasattr(whatever, 'leonardo_module_conf'):
          return True
  
      # check if is python object
      for key in dir(whatever):
          if 'LEONARDO' in key:
              return Truf _is_leonardo_module(whatever):
      '''check if is leonardo module'''
  
      # check if is python module
      if hasattr(whatever, 'default') \
              or hasattr(whatever, 'leonardo_module_conf'):
          return True
  
      # check if is python object
      for key in dir(whatever):
          if 'LEONARDO' in key:
              return True
docs: check if is leonardo module