code: def convert_to_path(name):
      
      if name.startswith('.'):
          remainder = name.lstrip('.')
          dot_count = (len(name) - len(remainder))
          prefix = '../'*(dot_count-1)
      else:
          remainder = name
          dot_count = 0
          prefix = ''
      filename = prefix + os.path.join(*remainder.split('.'))
      return (filename, dot_count)
docs: Converts ".module" to "./module", "..module" to "../module", etc.