code: def _check_position(position):
      """Checks the position argument to determine if an operation or list of operations was provided."""
      not_op = False
      req_ops = False
      if isinstance(position, list):
          req_ops = position.copy()
          for operation in req_ops:
              try:
                  if Operation not in operation.__bases__:
                      not_op = True
              except AttributeError:
                  not_op = True
      elif not isinstance(position, list):
          try:
              if Operation in position.__bases__:
                  req_ops = [position]
              else:
                  not_op = True
          except AttributeError:
              not_op = True
      return not_op, req_ops
  
file_path: pennylane/pennylane/transforms/insert_ops.py
imports: from types import FunctionType
  from typing import Type, Union, Callable, Sequence
  import pennylane
  from pennylane.operation import Operation
  from pennylane.tape import QuantumTape
  from pennylane.transforms import transform
  from pennylane.ops.op_math import Adjoint
label_desc: Use image node_id 1 for calling a global function with example usage: _check_position(position) and returns: not_op,  req_ops