parameters: (name)
return_statement: return found
docstring: Resolve a dotted name to a global object.
docstring_summary: Resolve a dotted name to a global object.
docstring_tokens: Resolve a dotted name to a global object .
function: def _resolve(name):
      """Resolve a dotted name to a global object."""
      name = name.split('.')
      used = name.pop(0)
      found = __import__(used)
      for n in name:
          used = used + '.' + n
          try:
              found = getattr(found, n)
          except AttributeError:
              __import__(used)
              found = getattr(found, n)
      return found
function_tokens: def _resolve ( name ) : name = name . split ( '.' ) used = name . pop ( 0 ) found = __import__ ( used ) for n in name : used = used + '.' + n try : found = getattr ( found , n ) except AttributeError : __import__ ( used ) found = getattr ( found , n ) return found