code: def get_dataarg(args):
      
      for i, arg in enumerate(args):
          if is_nested_config_arg(arg):
              return i, arg
          elif is_std_config_arg(arg):
              return i, {"config": arg}
          elif isinstance(arg, (list, tuple)) and is_nested_config_arg(arg[0]):
              return i, arg[0]
      raise ValueError("Did not find configuration or data object in arguments: %s" % args)
docs: Retrieve the world 'data' argument from a set of input parameters.