code: def get_path_from_doc(full_doc):
      
      swag_path = full_doc.replace('file:', '').strip()
      swag_type = swag_path.split('.')[-1]
      return swag_path, swag_type
docs: If `file:` is provided import the file.