code: def file_or_stdin() -> Callable:
      
  
      def parse(path):
          if path is None or path == "-":
              return sys.stdin
          else:
              return data_io.smart_open(path)
  
      return parse
docs: Returns a file descriptor from stdin or opening a file from a given path.