code: def flat_list(input_list):
      r
      x = input_list
      if isinstance(x, list):
          return [a for i in x for a in flat_list(i)]
      else:
          return [x]
docs: r"""
      Given a list of nested lists of arbitrary depth, returns a single level or
      'flat' list.