parameters: (self, source_module_name, source_name, dest_name)
docstring: Formats import statement.
  
      Args:
        source_module_name: (string) Source module to import from.
        source_name: (string) Source symbol name to import.
        dest_name: (string) Destination alias name.
  
      Returns:
        An import statement string.
docstring_summary: Formats import statement.
docstring_tokens: Formats import statement .
function: def format_import(self, source_module_name, source_name, dest_name):
      """Formats import statement.
  
      Args:
        source_module_name: (string) Source module to import from.
        source_name: (string) Source symbol name to import.
        dest_name: (string) Destination alias name.
  
      Returns:
        An import statement string.
      """
      if self._lazy_loading:
        return "  '%s': ('%s', '%s')," % (dest_name, source_module_name,
                                          source_name)
      else:
        if source_module_name:
          if source_name == dest_name:
            return 'from %s import %s' % (source_module_name, source_name)
          else:
            return 'from %s import %s as %s' % (source_module_name, source_name,
                                                dest_name)
        else:
          if source_name == dest_name:
            return 'import %s' % source_name
          else:
            return 'import %s as %s' % (source_name, dest_name)
function_tokens: def format_import ( self , source_module_name , source_name , dest_name ) : if self . _lazy_loading : return "  '%s': ('%s', '%s')," % ( dest_name , source_module_name , source_name ) else : if source_module_name : if source_name == dest_name : return 'from %s import %s' % ( source_module_name , source_name ) else : return 'from %s import %s as %s' % ( source_module_name , source_name , dest_name ) else : if source_name == dest_name : return 'import %s' % source_name else : return 'import %s as %s' % ( source_name , dest_name )