code: def parse_args():
      '''Parse command line arguments'''
      parser = argparse.ArgumentParser(
          description='Morphology fit distribution extractor',
          epilog='Note: Outputs json of the optimal distribution \
                  and corresponding parameters.')
  
      parser.add_argument('datapaths',
                          nargs='+',
                          help='Morphology data directory paths')
  
      parser.add_argument('--mtype', choices=MTYPE_GETTERS.keys(),
                          help='Get mtype from filename or parent directory')
  
      return parser.parse_args(f parse_args():
      '''Parse command line arguments'''
      parser = argparse.ArgumentParser(
          description='Morphology fit distribution extractor',
          epilog='Note: Outputs json of the optimal distribution \
                  and corresponding parameters.')
  
      parser.add_argument('datapaths',
                          nargs='+',
                          help='Morphology data directory paths')
  
      parser.add_argument('--mtype', choices=MTYPE_GETTERS.keys(),
                          help='Get mtype from filename or parent directory')
  
      return parser.parse_args()
docs: Parse command line arguments