code: def __init__(self, resdef, res_location, config):
      assert not config or isinstance(config, dict), config
      assert res_location
      self.resdef = resdef
      self.res_location = res_location
      self.config = config
  
imports: import os
  import re
  import logging
  import typing
  from guild import cli
  from guild import resolver
  from guild import resourcedef
  from guild import util
label_desc: Use image node_id 1 to create a new OpDependency object  with example: obj = OpDependency(resdef, res_location, config)