code: def _get(app, endpoint, id=None, auth_required=False, **kwargs):
      '''
      Helper function to do a GET request to Netbox.
      Returns the actual pynetbox object, which allows manipulation from other functions.
      '''
      nb = _nb_obj(auth_required=auth_required)
      if id:
          item = getattr(getattr(nb, app), endpoint).get(id)
      else:
          kwargs = __utils__['args.clean_kwargs'](**kwargs)
          item = getattr(getattr(nb, app), endpoint).get(**kwargs)
      return itef _get(app, endpoint, id=None, auth_required=False, **kwargs):
      '''
      Helper function to do a GET request to Netbox.
      Returns the actual pynetbox object, which allows manipulation from other functions.
      '''
      nb = _nb_obj(auth_required=auth_required)
      if id:
          item = getattr(getattr(nb, app), endpoint).get(id)
      else:
          kwargs = __utils__['args.clean_kwargs'](**kwargs)
          item = getattr(getattr(nb, app), endpoint).get(**kwargs)
      return item
docs: Helper function to do a GET request to Netbox.
      Returns the actual pynetbox object, which allows manipulation from other functions.