code: def col(loc: int, strg: str) -> int:
      """
      Returns current column within a string, counting newlines as line separators.
      The first column is number 1.
  
      Note: the default parsing behavior is to expand tabs in the input string
      before starting the parsing process.  See
      :class:`ParserElement.parse_string` for more
      information on parsing strings containing ``<TAB>`` s, and suggested
      methods to maintain a consistent view of the parsed string, the parse
      location, and line and column positions within the parsed string.
      """
      s = strg
      return (
          1
          if 0 < loc < len(s) and s[loc - 1] == "\n"
          else loc - s.rfind("\n", 0, loc)
      )
  
imports: import inspect
  import warnings
  import types
  import collections
  import itertools
  from functools import lru_cache, wraps
  from typing import Callable, List, Union, Iterable, TypeVar, cast
label_desc: Use image node_id 1 for calling a global function with example usage: col(loc, strg) and returns: unknown