code: def first_or_initialize(cls, parent=None, **attributes):
          
          existing_resource = cls.find_by(parent, **attributes)
          if existing_resource:
              return existing_resource
          return cls(**attributes)
docs: Attempts to find the first resource with the same attributes, initialized the resource if no matches are found.
          This will trigger an api GET request.
          :param parent ResourceBase: the parent of the resource - used for nesting the request url, optional
          :param **attributes: any number of keyword arguments as attributes to search/initialize the resource
          :returns: a resource instance - the existing one if found, otherwise the newly instantiated one