code: def __init__(self, ep):
      self.name = ep.name
      self.dist = ep.dist
      self.resdef = self._init_resdef()
      self._fullname = None
  
file_path: guildai/guild/resource.py
imports: from guild import entry_point_util
  from guild import namespace
label_desc: Use image node_id 1 to create a new Resource object  with example: obj = Resource(ep)