code: def from_yaml(cls, path):
          
          import yaml
  
          with path.open(mode='r') as fp:
              self = cls.from_cwl(yaml.safe_load(fp), __reference__=path)
  
          return self
docs: Return an instance from a YAML file.