code: def get_from_import(self, resource, name):
          
          module_name = libutils.modname(resource)
          names = []
          if isinstance(name, list):
              names = [(imported, None) for imported in name]
          else:
              names = [(name, None), ]
          return FromImport(module_name, 0, tuple(names))
docs: The from import statement for `name` in `resource`