code: def has_shared(arg, shared):
      
      try:
          if isinstance(shared, list):
              shared_arguments = shared
          else:
              shared_arguments = shared.__shared_arguments__
          for idx, (args, kwargs) in enumerate(shared_arguments):
              arg_name = kwargs.get(
                  'dest', args[-1].lstrip('-').replace('-', '_'))
              if arg_name == arg:
                  return idx
          idx = False
      except (ValueError, AttributeError):
          idx = False
      return idx
docs: Verifica se ci sono shared.